package com.xuxx.sso.user.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.xuxx.sso.bean.UserInfo;
import com.xuxx.sso.service.UserService;
import com.xuxx.sso.user.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public UserInfo findByUserNameAndPassword(String username, String password) {
        UserInfo userInfo = new UserInfo();
        userInfo.setUsername(username);
        userInfo.setPassword(password);
        return userInfoMapper.selectOne(userInfo);
    }
}
